package com.startup.yellocar.service.impl;
import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.startup.yellocar.dto.LanguageDTO;
import com.startup.yellocar.dao.LanguageDAO;

import com.startup.yellocar.service.LanguageService;

@Service
@Transactional
public class LanguageServiceImpl implements LanguageService {

	@Autowired
	protected LanguageDAO languageDAO;

	@Transactional
	public void insert(LanguageDTO languageDTO){
		languageDAO.insert(languageDTO);
	}

	@Transactional
	public void update(LanguageDTO languageDTO){
		languageDAO.update(languageDTO);
	}

	@Transactional
	public LanguageDTO get(int id) {
		return languageDAO.get(id);
	}

	@Transactional
	public List<LanguageDTO> getAll() {
		return languageDAO.getAll();
	}

	@Transactional
	public void delete(LanguageDTO languageDTO){
		languageDAO.delete(languageDTO);
	}

}
